<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  users
 */

class m_users_actions_block_front_EditForgottenPasswordAction extends m_backoffice_extends_BlockEditModal
{
	public function execute()
	{
        if($this->isFormSubmit())
        {
            $save = $this->getFormValues("form");
            $this->saveBlock($save);
            return $this->closeModal();
        }

        $this->setModalParameters();
		$this->setView('success');
	}	
	
	public function validate()
	{
		return true;
	}
	
	public function errorHandler()
	{
		$this->setView('error');
	}
}